//
//  TencentClient.h
//  AutoOwnersHome
//
//  Created by Raymond~ on 15/1/21.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TencentOpenAPI/sdkdef.h>
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterface.h>
#import <TencentOpenAPI/QQApiInterfaceObject.h>
#import "BlockTools.h"

@class TencentClient;
@protocol TencentClientDelagate <NSObject>
- (void)tencentClient:(TencentClient *)tencentClient tencentToken:(NSString *)token tencentOpenId:(NSString *)openId;
@end
@interface TencentClient : NSObject<QQApiInterfaceDelegate>
@property (nonatomic, weak) id <TencentClientDelagate> delegate;
@property (nonatomic, strong) NSDictionary * userInfo;
@property (nonatomic, copy) EventHandler doneBackBlock;
- (void)login;
+(TencentClient *)shareTencentClient;
- (void)sendQQ:(NSString *)shareString;
- (void)sendQQ:(UIImage *)image text:(NSString *)text;
- (void)sendToQZone:(NSString *)url title:(NSString *)title desctiption:(NSString *)desctiption imageUrl:(NSString *)imageUrl;
- (void)sendToQQ:(NSString *)url title:(NSString *)title desctiption:(NSString *)desctiption imageUrl:(NSString *)imageUrl;


/**
 处理来至QQ的请求
 */
- (void)onReq:(QQBaseReq *)req;

/**
 处理来至QQ的响应
 */
- (void)onResp:(QQBaseResp *)resp;

/**
 处理QQ在线状态的回调
 */
- (void)isOnlineResponse:(NSDictionary *)response;
@end
